@extends('admin.base.index')

@section('content')
	<!-- Messages Drawer -->
    <div class="block-area" id="defaultStyle">
        <h3 class="block-title">Default Style</h3>
        <form action='/ad' method='get'>
            <div class='media-body'>
                姓名：<input type='text' class='form-control m-b-5' name='name'>
            </div>
            <div>
                性别：<select name='sex' class='form-control m-b-5'>
                    <option value=''>----全部----</option>
                    <option value='1'>----男----</option>
                    <option value='2'>----女----</option>
                </select>
            </div>
            <input type='submit' class='btn' value='搜索'>
        </form>
        <table class="table tile">
            <thead>
                <tr>
                    <th>No.</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach($list as $v)
                <tr>
                    <td>{{ $v->id }}</td>
                    <td>{{ $v->name }}</td>
                    <td>{{ $v->sex }}</td>
                    <td>{{ $v->age }}</td>
                    <td>
                        <a href="">删除</a>
                        <a href="">修改</a>
                    </td>
                </tr>
                @endforeach
            </tbody>
        </table>
        {{ $list->appends($where)->links() }}
    </div>
@endsection